package com.hp.dao;

import com.hp.pojo.Friend;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface FriendMapper {
    public int addFriend(Friend friend);

    public int delFriend(Friend friend);

    public Friend selectOneFriend(Friend friend);

    public List<Friend> selectFriends(int userId);

    public int updateFriend(Map map);
}
